//
//  ViewController.m
//  TestJSPay
//
//  Created by hongliang on 16/3/13.
//  Copyright © 2016年 hongliang. All rights reserved.
//

#import "ViewController.h"
#import "WXPayWebViewController.h"

#define macro_HtmlTypeRemote

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)didGoButtonClicked:(id)sender {
    NSString* htmlURL = nil;
#ifdef macro_HtmlTypeRemote
    //htmlURL = @"http://101.201.29.69:8080/jjb-sms/pay/pay.html";
    htmlURL = @"http://dk.xijie.com/sw.php?m=shopwei&merchant_id=57&as=dRmTpQ594";//@"http://www.ediankai.com/shopwei.php?merchant_id=77527&as=dQnlkY785";
#else
    htmlURL = [[NSBundle mainBundle] pathForResource:@"local" ofType:@"html"];
#endif
    WXPayWebViewController* webViewController = [[WXPayWebViewController alloc]initWithURL:htmlURL];
    [self.navigationController pushViewController:webViewController animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
